export const formConfig = {
	inline: false,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '模板编号',
			prop: 'templateNo',
			type: 'input',
			span: 24,
		},
		{
			label: '模板名称',
			prop: 'templateName',
			type: 'input',
			span: 24,
		},
		{
			label: '模板介绍',
			prop: 'info',
			type: 'textarea',
			span: 24,
		},
	],
}

export const searchConfig = {
	inline: true,
	showBtn: true,
	labelPosition: 'left',
	column: [
		{
			label: '模板编号',
			prop: 'templateNo',
			type: 'input',
			span: 6,
		},
		{
			label: '模板名称',
			prop: 'templateName',
			type: 'input',
			span: 6,
		},
		{
			label: '模板介绍',
			prop: 'info',
			type: 'input',
			span: 6,
		},
	],
}
export const baseConfig = {
	pageName: '模板管理',
	dictcodes: [],
	rowKey: 'id',
	addLabel: '新增',
	tipLabel: 'templateName',
	api: {
		index: 'view_tableTemplate_page',
		add: 'view_tableTemplate_add',
		edit: 'view_tableTemplate_edit',
		delete: 'view_tableTemplate_del',
	},
	auth: {
		index: 'view_tableTemplate_page',
		add: '',
		edit: 'view_tableTemplate_edit',
		delete: 'view_tableTemplate_del',
	},
	searchConfig,
	menuAction: [
		{
			icon: 'editor',
			label: '新增',
			type: 'primary',
			operate: 'add',
			auth: '',
			text: false,
			show: true,
		},
	],
	menuBtn: [
		{
			icon: 'editor',
			label: '编辑',
			type: 'primary',
			operate: 'edit',
			auth: '',
			text: true,
			show: true,
		},
		{
			icon: 'editor',
			label: '报表设计',
			type: 'primary',
			operate: 'design',
			auth: '',
			text: true,
			show: true,
		},
		{
			icon: 'editor',
			label: '报表预览',
			type: 'primary',
			operate: 'preview',
			auth: '',
			text: true,
			show: true,
		},
		{
			icon: 'editor',
			label: '删除',
			type: 'danger',
			operate: 'delete',
			auth: '',
			text: true,
			show: true,
		},
	],
	tableConfig: {
		stripe: true,
		border: false,
		tableLayout: 'auto',
		columns: [
			{ label: '模板编号', prop: 'templateNo' },
			{ label: '模板名称', prop: 'templateName' },
			{ label: '模板介绍', prop: 'info' },
			{
				label: '操作',
				prop: 'menu',
				fixed: 'right',
			},
		],
	},
}
